package winTime.vo;

import java.io.Serializable;

/**
 * @author fatsung
 * 存放每筆回報tick資料的物件,供queue暫時存取使用
 *
 */
public class tickData implements Serializable{
	private static final long serialVersionUID = -3315352199235778964L;
	private int sTime;//系統時間
	private int tTime;//成交時間
	private int price;//成交價格
	private int qty;//成交數量
	private int sumqty;//總量
	public int getsTime() {
		return sTime;
	}
	public void setsTime(int sTime) {
		this.sTime = sTime;
	}
	public int gettTime() {
		return tTime;
	}
	public void settTime(int tTime) {
		this.tTime = tTime;
	}
	public int getPrice() {
		return price;
	}
	public void setPrice(int price) {
		this.price = price;
	}
	public int getQty() {
		return qty;
	}
	public void setQty(int qty) {
		this.qty = qty;
	}
	public int getSumqty() {
		return sumqty;
	}
	public void setSumqty(int sumqty) {
		this.sumqty = sumqty;
	}
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("tickData [sTime=");
		builder.append(sTime);
		builder.append(", tTime=");
		builder.append(tTime);
		builder.append(", price=");
		builder.append(price);
		builder.append(", qty=");
		builder.append(qty);
		builder.append(", sumqty=");
		builder.append(sumqty);
		builder.append("]");
		return builder.toString();
	}
}
